package com.sale.goods.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sale.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description 进项税返回类
 * @Date 23-07-19
 * @Author hl
 **/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("goods_collection")
public class GoodsCollection extends BaseEntity {

    /** id */
    @TableId(value = "collection_id")
    private Long collectionId;

    /** 收款单号 */
    private String collectionCode;

    /** 客户编码 */
    private String clientCode;

    /** 状态 */
    private Integer collectionStatus;

    /** 收款金额 */
    private BigDecimal collectionAmount;

    /** 本次核销金额 */
    private BigDecimal collectionCancelAmount;

    /** 本次预收款 */
    private BigDecimal thisAdvances;

    /** 整单折扣 */
    private BigDecimal packageDiscount;

    /** 本单应核销金额 */
    private BigDecimal collectionShouldAmount;

    /** 本单已核销金额 */
    private BigDecimal collectionHasAmount;

    /** 本单未核销金额 */
    private BigDecimal collectionNotAmount;

    /** 总欠款 */
    private BigDecimal grossArrears;

    /** 核销状态 */
    private Integer cancelStatus;

    /** 打印次数 */
    private Integer printCount;

    /** 备注 */
    private String remark;

    /** 业务员 */
    private String businessName;

    /** 开单日期 */
    private String collectionTime;

    /** 附件地址 */
    private String avatar;

    /**
     * 审核人
     */
    private String examineBy;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:m:ss")
    private Date examineTime;
}
